/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ggsoft.timetracker.domain;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.search.annotations.DocumentId;

/**
 *
 * @author giovanella
 * @date May 29, 2014
 */
@Entity
@Table(name = "images")
public class Image implements Serializable {
    private Long id;
    private byte[] source;

    public Image() {
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @DocumentId
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(length = 250)
    public byte[] getSource() {
        return source;
    }

    public void setSource(byte[] source) {
        this.source = source;
    }        
}
